import java.io.*;
import java.util.Scanner;

/*
 ID: ning yusui
 LANG: JAVA
 TASK: zerosum
 */

public class zerosum {
    Scanner in;
    PrintWriter out;

    private static final char[] OPERS = {' ', '+', '-',};

    public zerosum() throws IOException {
        in = new Scanner(new File(this.getClass().getName() + ".in"));
        out = new PrintWriter(new BufferedWriter(new FileWriter(this.getClass().getName() +
                ".out")));
    }

    private void work() {
        int number = in.nextInt();
        char[] operators = new char[number - 1];
        search(operators, 0);
        out.flush();
        out.close();
    }

    private void search(char[] operators, int deep) {
        if (deep == operators.length) {
            StringBuilder stringBuilder = buildString(operators);
            int sum = calcSum(stringBuilder);
//            System.out.println(stringBuilder + "=" + sum);
            if (sum == 0) {
                out.println(stringBuilder);
            }
        } else {
            for (char op : OPERS) {
                operators[deep] = op;
                search(operators, deep + 1);
            }
        }
    }

    private int calcSum(StringBuilder stringBuilder) {
        int sum = 0;
        int right = 0;
        char oldOp = '+';
        for (int i = 0; i < stringBuilder.length(); i++) {
            char ch = stringBuilder.charAt(i);
            if (ch == '+' || ch == '-') {
                sum = sumRight(sum, right, oldOp);
                oldOp = ch;
                right = 0;
            } else if (ch == ' ') {
            } else {
                right = right * 10 + (ch - '0');
            }
        }
        sum = sumRight(sum, right, oldOp);
        return sum;
    }

    private int sumRight(int sum, int right, char oldOp) {
        if (oldOp == '+') {
            sum += right;
        } else {
            sum -= right;
        }
        return sum;
    }

    private StringBuilder buildString(char[] operators) {
        int num = 1;
        StringBuilder stringBuilder = new StringBuilder(20).append(num++);
        for (char operator : operators) {
            stringBuilder.append(operator).append(num++);
        }
        return stringBuilder;
    }

    public static void main(String[] args) throws IOException {
        new zerosum().work();
    }
}
